package example1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2025-06-23
 * Time: 12:16
 */
public class Code1 {
    public static void main(String[] args) {
        char ch1 = 'A';//65
        System.out.println((int)ch1);

        char ch2 = 'a';//97
        System.out.println((int)ch2);

        int tmp = 'A' -'a';//输出类型为整型
        char ch = (char)('a' + 'A' -'a');//转化为大写A，强制类型转换
        System.out.println(tmp);
        System.out.println(ch);
    }
}
